package com.swiot.biz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.swiot.biz.mapper.RuleDetailMapper;
import com.swiot.biz.domain.RuleDetail;
import com.swiot.biz.service.IRuleDetailService;

/**
 * 规则明细Service业务层处理
 * 
 * @author kingdom
 * @date 2025-08-25
 */
@Service
public class RuleDetailServiceImpl implements IRuleDetailService 
{
    @Autowired
    private RuleDetailMapper ruleDetailMapper;

    /**
     * 查询规则明细
     * 
     * @param id 规则明细主键
     * @return 规则明细
     */
    @Override
    public RuleDetail selectRuleDetailById(String id)
    {
        return ruleDetailMapper.selectRuleDetailById(id);
    }

    /**
     * 查询规则明细列表
     * 
     * @param ruleDetail 规则明细
     * @return 规则明细
     */
    @Override
    public List<RuleDetail> selectRuleDetailList(RuleDetail ruleDetail)
    {
        return ruleDetailMapper.selectRuleDetailList(ruleDetail);
    }

    /**
     * 新增规则明细
     * 
     * @param ruleDetail 规则明细
     * @return 结果
     */
    @Override
    public int insertRuleDetail(RuleDetail ruleDetail)
    {
        return ruleDetailMapper.insertRuleDetail(ruleDetail);
    }

    /**
     * 修改规则明细
     * 
     * @param ruleDetail 规则明细
     * @return 结果
     */
    @Override
    public int updateRuleDetail(RuleDetail ruleDetail)
    {
        return ruleDetailMapper.updateRuleDetail(ruleDetail);
    }

    /**
     * 批量删除规则明细
     * 
     * @param ids 需要删除的规则明细主键
     * @return 结果
     */
    @Override
    public int deleteRuleDetailByIds(String[] ids)
    {
        return ruleDetailMapper.deleteRuleDetailByIds(ids);
    }

    /**
     * 删除规则明细信息
     * 
     * @param id 规则明细主键
     * @return 结果
     */
    @Override
    public int deleteRuleDetailById(String id)
    {
        return ruleDetailMapper.deleteRuleDetailById(id);
    }
}
